package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Evt;
import com.ruoyi.system.domain.LargeScreenCount;
import com.ruoyi.system.domain.MapModel;
import com.ruoyi.system.mapper.LargeScreenMapper;
import com.ruoyi.system.service.LargeScreenService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LargeScreenServiceImpl implements LargeScreenService {
    private static final Logger log = LoggerFactory.getLogger(LargeScreenServiceImpl.class);
    @Autowired
    private LargeScreenMapper largeScreenMapper;
    @Override
    public LargeScreenCount count() {
        LargeScreenCount count = new LargeScreenCount();
        count.setEvtCount(largeScreenMapper.evtCount());
        count.setResultCount(largeScreenMapper.resultCount());
        count.setRuleCount(largeScreenMapper.ruleCount());
        count.setEvtTypeCount(largeScreenMapper.evtTypeCount());
        return count;
    }
    public List<Evt> selectEvt(MapModel mapModel){
        return largeScreenMapper.selectEvt(mapModel);
    }
    public List<MapModel> selectEvtCount(){
        return largeScreenMapper.selectEvtCount();
    }
    public List<MapModel> selectSearchResultCount(){
        return largeScreenMapper.selectSearchResultCount();
    }
    public List<MapModel> selectEvtYearCount(){
        return largeScreenMapper.selectEvtYearCount();
    }
    public List<MapModel> selectEvtCountAll(){
        return largeScreenMapper.selectEvtCountAll();
    }
    public List<MapModel> selectResultYearCount(){
        return largeScreenMapper.selectResultYearCount();
    }
    public List<MapModel> selectResultType(){
        return largeScreenMapper.selectResultType();
    }
    public List<MapModel> selectResultRule(){
        return largeScreenMapper.selectResultRule();
    }
}
